package net.xju3_4.entity;

import java.sql.Timestamp;

/**
 * 车辆收藏实体类
 */
public class CarFavorite {
    
    private Integer id;           // 收藏ID（主键）
    private Integer userId;       // 用户ID
    private Integer carId;        // 车辆ID
    private Timestamp createdTime; // 收藏时间
    
    // 关联查询字段（可选）
    private String carBrand;      // 车辆品牌
    private String carModel;      // 车辆型号
    private String licensePlate;  // 车牌号
    private String carImages;     // 车辆图片
    private String dailyRent;     // 日租金
    private Integer carStatus;    // 车辆状态
    
    // 构造方法
    public CarFavorite() {}
    
    public CarFavorite(Integer userId, Integer carId) {
        this.userId = userId;
        this.carId = carId;
    }
    
    // Getter 和 Setter 方法
    public Integer getId() {
        return id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    public Integer getUserId() {
        return userId;
    }
    
    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    
    public Integer getCarId() {
        return carId;
    }
    
    public void setCarId(Integer carId) {
        this.carId = carId;
    }
    
    public Timestamp getCreatedTime() {
        return createdTime;
    }
    
    public void setCreatedTime(Timestamp createdTime) {
        this.createdTime = createdTime;
    }
    
    public String getCarBrand() {
        return carBrand;
    }
    
    public void setCarBrand(String carBrand) {
        this.carBrand = carBrand;
    }
    
    public String getCarModel() {
        return carModel;
    }
    
    public void setCarModel(String carModel) {
        this.carModel = carModel;
    }
    
    public String getLicensePlate() {
        return licensePlate;
    }
    
    public void setLicensePlate(String licensePlate) {
        this.licensePlate = licensePlate;
    }
    
    public String getCarImages() {
        return carImages;
    }
    
    public void setCarImages(String carImages) {
        this.carImages = carImages;
    }
    
    public String getDailyRent() {
        return dailyRent;
    }
    
    public void setDailyRent(String dailyRent) {
        this.dailyRent = dailyRent;
    }
    
    public Integer getCarStatus() {
        return carStatus;
    }
    
    public void setCarStatus(Integer carStatus) {
        this.carStatus = carStatus;
    }
    
    @Override
    public String toString() {
        return "CarFavorite{" +
                "id=" + id +
                ", userId=" + userId +
                ", carId=" + carId +
                ", createdTime=" + createdTime +
                ", carBrand='" + carBrand + '\'' +
                ", carModel='" + carModel + '\'' +
                ", licensePlate='" + licensePlate + '\'' +
                ", carImages='" + carImages + '\'' +
                ", dailyRent='" + dailyRent + '\'' +
                ", carStatus=" + carStatus +
                '}';
    }
}
